let mix = require('laravel-mix');

/*
 |--------------------------------------------------------------------------
 | Mix Asset Management
 |--------------------------------------------------------------------------
 |
 | Mix provides a clean, fluent API for defining some Webpack build steps
 | for your Laravel application. By default, we are compiling the Sass
 | file for the application as well as bundling up all the JS files.
 |
 */

// mix.scripts([
//     'public/jquery/jquery.js',
//     'public/jquery/jquery.form.js',
//     'public/jquery-ui/jquery.ui.js',
//     'public/bootstrap/js/bootstrap.js',
// ], 'public/js/prefix.js');

mix.scripts([
    'public/jquery/jquery.js',
    'public/jquery/jquery.form.js',
    'public/jquery-ui/jquery-ui.js',
    'public/bootstrap/js/popper.js',
    'public/bootstrap/js/bootstrap.js',
    'resources/dsxjs/jquery.misc.js',
    'resources/dsxjs/dsxdialog.js',
    'resources/dsxjs/dsxutil.js',
    'resources/dsxjs/dsxui.js',
    'resources/dsxjs/dsxvalidate.js',
    'resources/dsxjs/districtselector.js',
    'resources/dsxjs/plugins.js',
    'resources/dsxjs/boot.js',
], 'public/js/base.js');

if (mix.inProduction()) {
    mix.version();
}
